package com.cax.module.article.domain.dto;

import com.cax.common.core.validate.Group;
import com.cax.common.domain.base.dto.PageDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 文章表 DTO
 * @author makejava
 * @date 2024-08-22 17:22:38
 */
@Data
@ApiModel(value = "ArticleDTO", description = "文章表DTO")
public class ArticleDTO extends PageDTO implements Serializable {
	private static final long serialVersionUID = -23581086352693217L;

    @ApiModelProperty(value = "文章表-主键id")
	@NotNull(message = "参数id不能为空", groups = {Group.Upd.class })
	@Min(value = 1, message = "参数id不能为空", groups = {Group.Upd.class })
    private Integer id;

	@ApiModelProperty(value = "文章栏目id 来源article_column.id")
	@NotNull(message = "参数articleColumnId不能为空")
	@Min(value = 1, message = "参数articleColumnId不能为空")
    private Integer articleColumnId;

	@ApiModelProperty(value = "标题")
    private String title;

	@ApiModelProperty(value = "概要")
    private String outline;

	@ApiModelProperty(value = "文章内容")
    private String content;

	@ApiModelProperty(value = "是否显示 0不显示 1显示 默认1")
    private Integer isView;

	@ApiModelProperty(value = "是否置顶 0否 1是 默认0")
    private Integer isTop;

	@ApiModelProperty(value = "是否滚动 0否 1是 默认0")
    private Integer isRoll;

	@ApiModelProperty(value = "文章标题图片 文件id数组 例如[1,2,3]")
	private List<Long> titleFileIds;

	@ApiModelProperty(value = "文章富文本文件 文件id数组 例如[1,2,3]")
	private List<Long> richFileIds;

}

